listview: Measure children only, not self
authorBenjamin Otte <otte@redhat.com>
Sun, 19 Feb 2023 03:55:33 +0000 (04:55 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 19 Feb 2023 04:41:29 +0000 (05:41 +0100)
commitbe6a4722c0a0d8e49c417704b7365a6d0932f3d0
tree9252603bf349a0888a374ae4e2820e35a84a1f68
parent1f4adb60bb892a7a4c1c24fc8cfb9a1916022a62
listview: Measure children only, not self

The previous code would include CSS padding/margin/border in the
measurement and that is wrong.

Until commit a96c75ff02 this was not actually visible, but afterwards
listitems were allocated 16px too wide.

Test included
gtk/gtklistview.c
testsuite/reftests/listview-margin.css [new file with mode: 0644]
testsuite/reftests/listview-margin.ref.ui [new file with mode: 0644]
testsuite/reftests/listview-margin.ui [new file with mode: 0644]
testsuite/reftests/meson.build